#ifndef NODE_H
#define NODE_H

#define IP_SIZE 20
#define MAC_SIZE 20
#define TRACE printf("%s:%d\n", __FILE__, __LINE__)

typedef struct Node Node;

struct Node
{
    char ip[IP_SIZE];
    char mac[MAC_SIZE];
    Node *next;
};

Node *node_new(const char *, const char *);
Node *node_add(Node *, Node *);
Node *node_read(const char *);

void node_save(Node *, const char *);
void node_display(Node *);
void node_destroy(Node *);
#endif
